/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.meibang.consultation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.apestar.common.persistence.Page;
import cn.apestar.common.service.CrudService;
import cn.apestar.modules.meibang.consultation.dao.BeautyConsultationOrderQuestionDao;
import cn.apestar.modules.meibang.consultation.entity.BeautyConsultationOrderQuestion;

/**
 * questionService
 * @author question
 * @version 2017-06-05
 */
@Service
@Transactional(readOnly = true)
public class BeautyConsultationOrderQuestionService extends CrudService<BeautyConsultationOrderQuestionDao, BeautyConsultationOrderQuestion> {

    /**
     * 持久层对象
     */
    @Autowired
    protected BeautyConsultationOrderQuestionDao dao;

    @Override
    public BeautyConsultationOrderQuestion get(String id) {
        return super.get(id);
    }

    @Override
    public List<BeautyConsultationOrderQuestion> findList(BeautyConsultationOrderQuestion beautyConsultationOrderQuestion) {
        return super.findList(beautyConsultationOrderQuestion);
    }

    public List<BeautyConsultationOrderQuestion> findQAList(BeautyConsultationOrderQuestion bq) {
        return dao.findQAList(bq);
    }

    @Override
    public Page<BeautyConsultationOrderQuestion> findPage(Page<BeautyConsultationOrderQuestion> page,
        BeautyConsultationOrderQuestion beautyConsultationOrderQuestion) {
        return super.findPage(page, beautyConsultationOrderQuestion);
    }

    @Override
    @Transactional(readOnly = false)
    public void save(BeautyConsultationOrderQuestion beautyConsultationOrderQuestion) {
        super.save(beautyConsultationOrderQuestion);
    }

    @Transactional(readOnly = false)
    public void updateImage(BeautyConsultationOrderQuestion bq) {

        dao.updateImage(bq);
    }

    @Override
    @Transactional(readOnly = false)
    public void delete(BeautyConsultationOrderQuestion beautyConsultationOrderQuestion) {
        super.delete(beautyConsultationOrderQuestion);
    }

}